package pers.qianyu.module.core.domain.comment.vo;

import pers.qianyu.module.core.comm.*;
import pers.qianyu.module.core.domain.system.vo.*;

import java.util.*;

public class CommentVO extends BaseVO {
    private static final long serialVersionUID = 5721404727105741717L;
    private Long topicId;
    private Long parentId;
    private String content;
    private SimpleUserVO creator;
    private List<CommentVO> children = new ArrayList<>();

    public SimpleUserVO getCreator() {
        return creator;
    }

    public void setCreator(SimpleUserVO creator) {
        this.creator = creator;
    }

    public Long getTopicId() {
        return topicId;
    }

    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<CommentVO> getChildren() {
        return children;
    }

    public void setChildren(List<CommentVO> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "CommentVO{" +
                "topicId=" + topicId +
                ", parentId=" + parentId +
                ", content='" + content + '\'' +
                ", creator=" + creator +
                ", children=" + children +
                ", id=" + getId() +
                ", createTime='" + getCreateTime() + '\'' +
                ", updateTime='" + getUpdateTime() + '\'' +
                ", createdBy=" + getCreatedBy() +
                ", updatedBy=" + getUpdatedBy() +
                '}';
    }
}
